@extends('admin.layouts.wap')
@section('title', '设置小程序业务域名')

@section('content')

<div class="row">
    <div class="col-md-12">
        <form id="comment-form" method="POST" action="{{ URL::current() }}">
            <div class="card">
                <div class="card-body">
                    <div class="m-form-item">
                        <label>小程序APPID</label>
                        <div class="m-col-3 m-xs-12">
                            <input type="text" class="m-input" name="appid" placeholder="请输入小程序APPID" value="{{ $appid }}" disabled="disabled">
                        </div>
                        @csrf
                    </div>
                    <div class="m-form-item">
                        <label>设置业务域名：</label>
                        @if(isset($webviewdomains['webviewdomain']))
                        <input type="text" class="m-input" name="webviewdomain" value="{{ implode(',',$webviewdomains['webviewdomain']) }}" placeholder="请输入设置业务域名：多个域名用,号隔开">
                        @else
                        <input type="text" class="m-input" name="webviewdomain" value="" placeholder="请输入设置业务域名：多个域名用,号隔开">
                        @endif
                    </div>
                    <div class="m-form-item">
                        <button class="m-form-btn m-mr-1" type="submit">立即保存配置</button>
                    </div>
                    <div class="m-info-item m-mt-1">
                        <label>业务域名说明：</label>
                        <div class="text">
                            <ul>
                                <li>1、业务域名一般用于小程序内加载链接；</li>
                                <li>2、适用于小程序内自有落地页，自有微信活码等；</li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>


@endsection
